from rest_framework import serializers

from home.models import NavModel, BannerModel


class NavSerializer(serializers.ModelSerializer):
    class Meta:
        model = NavModel

        fields = ['title','link', 'is_http']


class BanerSerializer(serializers.ModelSerializer):
    class Meta:
        model = BannerModel
        # fields = "__all__"
        fields = ['link', 'is_http', 'image']



